import http from "@/api";

import { PORT1 } from "@/api/config/servicePort";
 


//#region 商品单证
// 商品单证接口
export const getCertifyApi = (data: Record<string, any>,queueId) =>
    http.post(`${PORT1}/goods-archive/products-info/certify`, { ...data }, { queueId,loading: false });
    
//pinpai
export const getProductInfoApi = (data: Record<string, any>,queueId) =>
    http.post(`${PORT1}/goods-archive/products-info/list`, { ...data }, {queueId, loading: false });
    
//#endregion


//#region 商品图片
export const enum Path { 
    goodsImgSpu="/goods-archive/goods-images/spu",//商品主图
    goodsImgDetail="/goods-archive/goods-images/detail",//商品详情图
    goodsVideo="/goods-archive/goods-images/video",//商品视频
  }
  
//获取商品主图--切换标签
export const getListTabApi = (data: Record<string, any>) =>
    http.post(`${PORT1}/goods-archive/goods-images/list-lable`, { ...data }, { loading: false });
    

//获取商品主图列表
export const getListSpuApi = (data: Record<string, any>) =>
    http.post(`${PORT1}/goods-archive/goods-images/list-spu`, { ...data }, { loading: false });
    

//获取商品详情列表
export const getListDetailApi = (data: Record<string, any>) =>
    http.post(`${PORT1}/goods-archive/goods-images/list-detail`, { ...data }, { loading: false });
    

//获取商品单个视频
export const getViewVideoApi = (data: Record<string, any>) =>
 http.post(`${PORT1}/goods-archive/goods-images/view-video`, { ...data }, { loading: false });

 
//删除商品
export const delGoodsImagesApi = (data: Record<string, any>) =>
    http.post(`${PORT1}/goods-archive/goods-images/delete`, { ...data }, { loading: false });
   

//拖拽
export const changesImagesApi = (data: Record<string, any>) =>
    http.post(`${PORT1}/goods-archive/goods-images/changes`, { ...data }, { loading: false });
   


//#endregion
 
 
 //#region 左侧菜单
	export const getLeftMsg = (data: Record<string, any>) =>
	    http.get(`${PORT1}/goods-archive/products-info/left-menu`, { ...data }, { loading: false });

 //#endregion


 //#region 操作日志
	export const getTableHeader = (data: Record<string, any>) =>
	    http.get(`${PORT1}/goods-archive/products-info/operation-log-field`, { ...data }, { loading: false });
		
	export const getTableData = (data: Record<string, any>) =>
	    http.post(`${PORT1}/goods-archive/products-info/operation-log`, { ...data }, { loading: false });

 //#endregion


 

 